﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MailMarketing.Models.Entity.Campanha>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Lista de Campanhas</h2>
    <table>
        <tr>
            <th>
                Data
            </th>
            <th>
                Remetente
            </th>
        </tr>
    <% foreach (var item in Model) { %>
        <tr>
            <td>
                <%: String.Format("{0:dd/MM/yyyy}", item.Data) %>
            </td>
            <td>
                <%: item.Remetente.Nome %>
            </td>
        </tr>
    <% } %>
    </table>
    <p>
        <%: Html.ActionLink("Nova Campanha", "Novo") %>
    </p>
</asp:Content>

